// import count from '@dfeidao/web/atom/nodejs/db/count';
// import count from '@dfeidao/atom-nodejs/db/count';
import query from '@dfeidao/atom-nodejs/db/query';
// import { systemid } from '../..//atom/config';
interface Message {
	filter: { productid: string };
}
export default async function atom(msg: Message, action_id: string, session_id: string) {
	const { prepare: p1, exec: e1 } = query(action_id, session_id, '12');

	p1('tenant_level', ['_id', 'productid', 'level_no', 'level_name', 'order_num', 'create_time'], msg.filter, 20, 1, [], []);

	const [data] = await e1();
	return { dataArray: data };
}
